﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WUCHeaderShop2.ascx.cs"
    Inherits="NJL.WebUsers.Controls.WUCHeaderShop2" %>
<%
    if (UserId == "" || UserName == "")
    {
%>
<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        //示例9，综合效果
        var guanzhu = new PopupLayer({ trigger: "#guanzhu", popupBlk: "#divguanzhu", closeBtn: "#closeguanzhu", useOverlay: true, useFx: true,
            offsets: {
                x: 0,
                y: -41
            }
        });
        guanzhu.doEffects = function (way) {
            if (way == "open") {
                this.popupLayer.css({ opacity: 0.3 }).show(400, function () {
                    this.popupLayer.animate({
                        left: ($(document).width() - this.popupLayer.width()) / 2,
                        top: (document.documentElement.clientHeight - this.popupLayer.height()) / 2 + $(document).scrollTop(),
                        opacity: 0.8
                    }, 1000, function () { this.popupLayer.css("opacity", 1) } .binding(this));
                } .binding(this));
                document.getElementById('Iframeguanzhu').src = '<%=WEBSITE_USRE_DOMAIN %>/SecondLogin.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=Request.RawUrl %>';
            }
            else {
                this.popupLayer.animate({
                    left: this.trigger.offset().left,
                    top: this.trigger.offset().top,
                    opacity: 0.1
                }, { duration: 500, complete: function () { this.popupLayer.css("opacity", 1); this.popupLayer.hide() } .binding(this) });
            }
        }

    });
</script>
<!--添加关注-->
<div id="divguanzhu" class="blk">
    <div class="popup_title">
        <span class="float_r"><a href="javascript:void(0)" id="closeguanzhu">关闭</a></span>
        <ul>
            <li class="now"><a target="main">登录</a> </li>
        </ul>
    </div>
    <div>
        <iframe id="Iframeguanzhu" name="main" width="500" height="420" style="overflow: hidden;
            border: none;"></iframe>
    </div>
</div>
<%
    }
%>
<div class="personalinfo">
    <div class="float_r" style="width: 300px;">
        <!-- JiaThis Button BEGIN -->
        <div id="jiathis_style_32x32">
            <a class="jiathis_button_qzone"></a><a class="jiathis_button_tsina"></a><a class="jiathis_button_tqq">
            </a><a class="jiathis_button_renren"></a><a class="jiathis_button_kaixin001"></a>
            <a href="http://www.jiathis.com/share/" class="jiathis jiathis_txt jtico jtico_jiathis"
                target="_blank"></a><a class="jiathis_counter_style"></a>
        </div>
        <script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
        <!-- JiaThis Button END -->
    </div>
    <!--空间信息-->
    <%
        Random randoms = new Random();

        int iColor = randoms.Next(1, 3);

        string strColorValue = "#333333";

        if (iColor == 1)
        {
            strColorValue = "#29b531";
        }
        else if (iColor == 2)
        {
            strColorValue = "#63b5ff";
        }
        else if (iColor == 3)
        {
            strColorValue = "#ffcc00";
        }
        else
        {
            strColorValue = "#333333";
        }
    %>
    <div class="info">
        <h1 class="infoname">
            <span class="name"><a href="/shangpu/<%=modelCompany.ID %>-index.html" title="<%=modelCompany.COMPANY_NAME %>"
                style="color: <%=strColorValue%>">
                <%if (modelCompany.COMPANY_NAME.Length > 20) Response.Write(modelCompany.COMPANY_NAME.Substring(0, 20) + "..."); else Response.Write(modelCompany.COMPANY_NAME); %></a>
            </span>
            <%if (UserId != "" && UserId == modelCompany.NJL_USER_ID)
              {

              }
              else
              {
            %>
            <span title="添加关注" <%if(UserId!=""){Response.Write("onclick=\"collection('"+Request.QueryString["id"]+"')\"");} %>
                id="guanzhu" class="addation"></span>
            <%
                } 
            %>
        </h1>
    </div>
    <div class="cleanFlex">
    </div>
</div>
